package com.blb.blb_erp.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.blb.blb_erp.entity.SMenu;
import com.blb.blb_erp.vo.TreeVO;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author chenheng
 * @since 2020-08-14
 */
public interface ISMenuService extends IService<SMenu> {

    List<SMenu> findMenusByUserId(String userId);

    List<TreeVO> findMenuTrees();

    /**
     * 查询角色有的权限id
     * @param roleId
     * @return
     */
    List<String> findMenuIdsByRoleId(String roleId);
}
